//
//  WaterFallLayout.h
//  Rippton2.0
//
//  Created by 胡旭辉 on 2019/8/19.
//  Copyright © 2019 胡旭辉. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol WaterFallLayoutDelegate <NSObject>

@required
- (CGFloat)flowLayout:(UICollectionViewLayout *)layout heightForIndexPath:(NSIndexPath *)indexPath;
@optional
- (CGFloat)WaterHeaderHeight;
@end


@interface WaterFallLayout : UICollectionViewLayout


@property (nonatomic,weak)id<WaterFallLayoutDelegate>delegate;
// 是否需要头部视图
@property (nonatomic,assign)BOOL isNeedHeader;
// 最大存放数量
@property (nonatomic,assign)NSInteger columnsCount;
// 设置同一列中间隔的cell最小间距
@property (nonatomic,assign)CGFloat minimumInteritemSpacing;
// 同一行的cell中互相之间的最小间隔
@property (nonatomic,assign)CGFloat minimumLineSpacing;
// 内间距
@property (nonatomic,assign)UIEdgeInsets sectionInset;

@end
